import { request } from '@/utils/request'

// 获取文章列表
export function getArticleList(dirList?: string) {
  return request.get('/api/fileDirectory/getList', { params: { dirList } })
}
// 根据id获取文章详情
export function getArticleById(data: { id: string }) {
  return request.get('/api/fileDirectory/getById', { params: data })
}
// 根据id获取文档详情
export function getNotepadById(data: { id: string }) {
  return request.get('/api/fileDirectory/getById', { params: data })
}
